<%--
  Created by IntelliJ IDEA.
  User: lutao
  Date: 2017/7/14
  Time: 15:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>添加产品名称</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <!-- 配置文件 -->
    <script type="text/javascript" src="/static/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/static/ueditor/ueditor.all.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/ueditor/themes/default/css/ueditor.css" />
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add">
        <input id="tid" name="tid" value="${product.tid}" type="hidden">
        <input id="productId" name="productId" value="${product.productId}" type="hidden">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>产品类型：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" name="productType">
                        <c:forEach items="${productType}" var="item" >
                            <option value="${item.tid}" ${product.productType==item.tid?"selected":"" }>${item.productTypeName}</option>
                        </c:forEach>
                    </select>
				</span>
            </div>
        </div>



        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>产品名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${product.productName}" placeholder="产品名称" id="productName" name="productName">
            </div>
        </div>
 <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>产品价格：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${product.productPrice}" placeholder="产品价格" id="productPrice" name="productPrice">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品介绍：</label>
            <div class="formControls col-xs-8 col-sm-9">
              <%--  <input type="text" class="input-text" value="${product.productIntroduction}" placeholder="产品介绍" id="productIntroduction" name="productIntroduction">--%>
               <textarea id="productIntroduction" name="productIntroduction" style="height: 80%">${product.productIntroduction}</textarea>
               <script type="text/javascript">
                   UE.getEditor('productIntroduction',{
                       //toolbars:[['FullScreen','simpleupload' , 'Source', 'Undo', 'Redo','Bold','test']],
                       initialFrameHeight:200
                   });
               </script>
            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" id="advertSubmit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/static/js/admin/product/getProduct.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
